﻿/*CREATE TRIGGER [dbo].[Ciclos_DeletionTrigger] 
    ON [Ciclos] 
    AFTER DELETE 
AS 
SET NOCOUNT ON 
UPDATE [dbo].[Ciclos_Tombstone] 
    SET [DeletionDate] = GETUTCDATE() 
    FROM deleted 
    WHERE deleted.[CicloGuid] = [Ciclos_Tombstone].[CicloGuid] 
IF @@ROWCOUNT = 0 
BEGIN 
    INSERT INTO [dbo].[Ciclos_Tombstone] 
    ([CicloGuid], DeletionDate)
    SELECT [CicloGuid], GETUTCDATE()
    FROM deleted 
END*/